<?php
session_start();
date_default_timezone_set('Asia/Singapore');

$host		= "localhost:3306";
$login		= "root";
$password	= "";
$domain 	= "http://localhost/nuskin/timeattendance";
$curl 		= (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$curl 		= urlencode($curl);

//require_once('function.php');

if (!($db = mysql_pconnect($host, $login , $password))){
	die("Can't connect to database server.");    
}else{
	if (!(mysql_select_db("nuskin",$db))){die("Can't connect to database.");}
} 
$conn = mysql_pconnect($host, $login , $password) or die('Error connecting to mysql');
mysql_query("SET character_set_results=utf8", $conn);
?>